<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>首页</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="stylesheet" href="assets/css/app.css">
    <script src="assets/js/echarts.min.js"></script>
</head>

<body data-type="index" style="">
    <header class="am-topbar am-topbar-inverse admin-header">
        <div class="am-topbar-brand">
            <a href="javascript:;" class="tpl-logo">
                <img src="assets/img/logo.png" alt="">
            </a>
        </div>
        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
        <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
            <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
                <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                    <a style="color: #999" href="login.html">
                        <span class="am-icon-sign-out">注销 </span>
                    </a>
                </li>
                <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                    <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                        <span class="am-icon-comment-o"></span> 消息 <span class="am-badge tpl-badge-danger am-round">9</span></span>
                    </a>
                    <ul class="am-dropdown-content tpl-dropdown-content">
                        <li class="tpl-dropdown-content-external">
                            <h3>你有 <span class="tpl-color-danger">9</span> 条新消息</h3><a href="###">全部</a></li>
                        <li>
                        </li>
                    </ul>
                </li>
            </ul>
            </li>
            </ul>
        </div>
    </header>
    <div class="tpl-page-container tpl-page-header-fixed">
        <div class="tpl-left-nav tpl-left-nav-hover">
            <div class="tpl-left-nav-title">
                <a href="#" class="tpl-dropdown-content-message">
                                <span class="tpl-dropdown-content-photo">
                      <img src="assets/img/f.jpg" alt=""> </span>
                                <span class="tpl-dropdown-content-subject">
                      <span class="tpl-dropdown-content-from" id="name"> XXX</span>
                                </span>
                                <span class="tpl-dropdown-content-font">  </span>
                            </a>
                <ul class="am-dropdown-content">
                    <li><a href="#"><span class="am-icon-bell-o"></span> 资料</a></li>
                </ul>
            </div>
            <div class="tpl-left-nav-list">
                <ul class="tpl-left-nav-menu">
                    <li class="tpl-left-nav-item">
                        <a href="index.html" class="nav-link active">
                            <i class="am-icon-home"></i>
                            <span>首页</span>
                        </a>
                    </li>
                    <li class="tpl-left-nav-item">
                        <a href="##" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-book"></i>
                            <span>课程管理</span>
                        </a>
                    </li>
                    <li class="tpl-left-nav-item">
                        <a href="#" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-book"></i>
                            <span>课堂管理</span>
                        </a>
                    </li>
                    <li class="tpl-left-nav-item">
                        <a href="#" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-question-circle"></i>
                            <span>提问管理</span>
                        </a>
                    </li>
                    <li class="tpl-left-nav-item">
                        <a href="#" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-arrow-right"></i>
                            <span>推送管理</span>
             </i>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                数据库原理
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">首页</a></li>
                <li class="am-active">课堂简介</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="am-g ">
                    <div style="float:left;margin-left: 10px;height: 20px">
                        <div style="margin-top: 10px "><span style="font-size: 20px; ">课堂信息</span></div>
                        <select style="border: 0; background-color:#f5f8fd;font-size: 20px;margin-left: 100px;margin-top: -58px; " class="selector ">
                            <option value="1 " selected="selected ">2017~2018秋季学期</option>
                            <option value="2 ">2016-2017秋季学期</option>
                            <option value="3 ">2016-2017春季学期</option>
                        </select>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-4" style="margin-left: -300px">
                    <div class="tpl-table-images-content">
                        <a href="add_class.html "><img src="assets/img/add.jpg " style="margin-top: 150px;margin-left: 100px " title="添加新课堂 "></a>
                    </div>
                </div>
                <div class="tpl-table-images">
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-4 ">
                        <div class="tpl-table-images-content">
                            <div class="tpl-table-images-content-i-time ">课堂名：
                                <span>2016-09-12</span>&nbsp;&nbsp;持续时间：
                                <span>7周</span>
                            </div>
                            <a href="javascript:; " class="tpl-table-images-content-i ">
                                    <span class="tpl-table-images-content-i-shadow "></span>
                                    <img src="assets/img/study.jpg " alt=" ">
                                </a>
                            <div class="tpl-table-images-content-block ">
                                <div class="tpl-i-more-1 ">
                                    <ul>
                                        <li>
                                            <span class="font-green ">班级：</span>
                                        </li>
                                        <li>
                                            <span class="font-green ">时间：</span>
                                        </li>
                                        <li>
                                            <span class="font-green ">地点：</span>
                                        </li>
                                        <li>
                                            <span class="font-green ">参与人数：</span>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                 <div class="am-u-sm-12 am-u-md-6 am-u-lg-4 ">
                        <div class="tpl-table-images-content">
                            <div class="tpl-table-images-content-i-time ">课堂名：
                                <span>2016-09-12</span>&nbsp;&nbsp;持续时间：
                                <span>7周</span>
                            </div>
                            <a href="javascript:; " class="tpl-table-images-content-i ">
                                    <span class="tpl-table-images-content-i-shadow "></span>
                                    <img src="assets/img/study.jpg " alt=" ">
                                </a>
                            <div class="tpl-table-images-content-block ">
                                <div class="tpl-i-more-1 ">
                                    <ul>
                                        <li>
                                            <span class="font-green ">班级：</span>
                                        </li>
                                        <li>
                                            <span class="font-green ">时间：</span>
                                        </li>
                                        <li>
                                            <span class="font-green ">地点：</span>
                                        </li>
                                        <li>
                                            <span class="font-green ">参与人数：</span>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
				</div>
                
                </div>
            </div>
        </div>
    </div>
    <script src="assets/js/jquery.min.js "></script>
    <script src="assets/js/amazeui.min.js "></script>
    <!-- <script src="assets/js/iscroll.js "></script> -->
    <script src="assets/js/app.js "></script>
    <script type="text/javascript ">
    var term = $(".selector ").find("option:selected ").text();

    $.ajax({
        type: "get",
        //url:"/lesson/getLessonList?term="+term.toString(),
        url: " /lesson/getLessonList?term=" + term.toString(),
        dataType: " json ",
        contentType: "application/x-www-form-urlencoded; charset=UTF-8 ",
        data: term,
        success: function(result) {
            var datalist = "";

            $.each(result, function(i, item) {
                datalist += '<div class="am-u-sm-12 am-u-md-6 am-u-lg-4 "><div class="tpl-table-images-content "><div class="tpl-table-images-content-i-time ">课堂名：<span>' + item.lessonName + '</span>&nbsp;&nbsp;持续时间：<span>' + item.weekCount + '</span></div><a href="javascript:; " class="tpl-table-images-content-i "><span class="tpl-table-images-content-i-shadow "></span><img src="assets/img/study.jpg " alt=" "></a><div class="tpl-table-images-content-block "><div class="tpl-i-more-1 "><ul><li><span class="font-green ">班级：' + item.classGrade + '</span></li><li><span class="font-green ">时间：' + item.classTime + '</span></li><li><span class="font-green ">地点：' + item.classPlace + '</span></li><li><span class="font-green ">参与人数：' + item.studentNum + '</span></li></ul></div>';
            })
            $(".tpl-table-images").html(datalist);
        }
    })

    $.ajax({
        type: "get",
        url: "/user/getUserInfo",
        dataType: "json",
        contentType: "application/x-www-form-urlencoded; charset=UTF-8 ",
        success: function(result) {
            var data = "";
            document.getElementById('name').innerHTML = result.name;
            //alert(result.name);
        }
    })
    </script>
</body>

</html>